package com.hmall.search.Config;

public class HotelEsSynclistener {
    /**
    * @Auth: wangxinglong
    * @desc:创建索引语句
    * @Date: 2023/6/27 21:11
    */
    public static final String MAPPING_TEMPLATE = "{\n" +
            "  \"mappings\": {\n" +
            "    \"properties\": {\n" +
            "      \"id\": {\n" +
            "        \"type\": \"keyword\"\n" +
            "      },\n" +
            "      \"name\":{\n" +
            "        \"type\": \"text\"\n" +
            "      },\n" +
            "      \"stock\":{\n" +
            "        \"type\": \"integer\"\n" +
            "      },\n" +
            "      \"price\":{\n" +
            "        \"type\": \"integer\"\n" +
            "      },\n" +
            "      \"image\":{\n" +
            "        \"type\": \"text\"\n" +
            "      },\n" +
            "      \"brand\":{\n" +
            "        \"type\": \"keyword\",\n" +
            "        \"copy_to\": \"all\"\n" +
            "      },\n" +
            "      \"category\":{\n" +
            "        \"type\": \"text\",\n" +
            "        \"copy_to\": \"all\"\n" +
            "      },\n" +
            "      \"spec\":{\n" +
            "        \"type\": \"text\"\n" +
            "      },\n" +
            "      \"sold\":{\n" +
            "        \"type\": \"keyword\"\n" +
            "      },\n" +
            "      \"comment_count\":{\n" +
            "        \"type\": \"keyword\"\n" +
            "      },\n" +
            "      \"isAD\":{\n" +
            "        \"type\": \"keyword\"\n" +
            "      },\n" +
            "      \"status\":{\n" +
            "        \"type\": \"keyword\"\n" +
            "      }\n" +
            "    }\n" +
            "  }\n" +
            "}";
}
